package collection

func Map(array []T, iteratee func(value T, index int, array []T) V) []V {
	var ret []V
	for index, value := range array {
		ret = append(ret, iteratee(value, index, array))
	}
	return ret
}
